import Layout from "@/page/index/";

export default [
  {
    path: "/wel",
    component: Layout,
    redirect: "/wel/index",
    children: [
      {
        path: "index",
        name: "首页",
        meta: {
          i18n: "dashboard",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/wel/index"),
      },
      {
        path: "dashboard",
        name: "控制台",
        meta: {
          i18n: "dashboard",
          menu: false,
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/wel/dashboard"),
      },
    ],
  },
  {
    path: "/grade",
    component: Layout,
    children: [
      {
        path: "index",
        name: "年级管理",
        meta: {
          i18n: "levelConfig",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/grade/index"),
      },
    ],
  },
  {
    path: "/article",
    component: Layout,
    //redirect: "/article/categories",
    children: [
      {
        path: "categories",
        name: "文章分类",
        meta: {
          i18n: "categories",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/article/categories"),
      },
      {
        path: "list",
        name: "文章列表",
        meta: {
          i18n: "list",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/article/list"),
      },
    ],
  },
  {
    path: "/expert",
    component: Layout,
    //redirect: "/article/categories",
    children: [
      {
        path: "categories",
        name: "专家分类",
        meta: {
          i18n: "categories",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/expert/categories"),
      },
      {
        path: "list",
        name: "专家列表",
        meta: {
          i18n: "list",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/expert/list"),
      },
      {
        path: "model",
        name: "专家模块",
        meta: {
          i18n: "model",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/expert/model"),
      },
    ],
  },
  {
    path: "/info",
    component: Layout,
    redirect: "/info/index",
    children: [
      {
        path: "index",
        name: "个人信息",
        meta: {
          i18n: "info",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/user/info"),
      },
    ],
  },
  {
    path: "/test-classify",
    component: Layout,
    redirect: "/test-classify/index",
    children: [
      {
        path: "index",
        name: "测试分类",
        meta: {
          i18n: "info",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/test-manage/test-classify"
          ),
      },
      {
        path: "bind",
        name: "绑定人群",
        // meta: {
        //   i18n: "info"
        // },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/census-manage/bind.vue"
          ),
      },
      {
        path: "custom",
        name: "自定义设置",
        // meta: {
        //   i18n: "info"
        // },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/census-manage/custom.vue"
          ),
      },
      {
        path: "test-result-set",
        name: "结果列表",
        meta: {
          i18n: "info",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/test-manage/test-result-set.vue"
          ),
      },
    ],
  },
  {
    path: "/scale-settings",
    component: Layout,
    redirect: "/scale-settings/index",
    children: [
      {
        path: "index",
        name: "量表信息",
        // meta: {
        //   i18n: "量表"
        // },
        props: true,
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/scale-manage/settings/index.vue"
          ),
      },
    ],
  },
  {
    path: "/projectgaugetype",
    component: Layout,
    children: [
      {
        path: "projectgaugetype",
        name: "量表设置",
        props: true,
        component: () =>
          import("@/views/projectgaugetype/projectgaugetype.vue"),
      },
    ],
  },
  {
    path: "/personalEvaluation",
    component: Layout,
    children: [
      {
        path: "personalEvaluation",
        name: "个人测评报告",
        props: true,
        component: () =>
          import("@/views/archive-manage/personalEvaluation/personal.vue"),
      },
      {
        path: "personalReportPDF",
        name: "个人测评报告导出",
        props: true,
        component: () =>
          import(
            "@/views/archive-manage/personalEvaluation/personalReportPdf.vue"
          ),
      },
      {
        path: "personalTemplatePDF",
        name: "个人报告模板导出",
        props: true,
        component: () =>
          import(
            "@/views/archive-manage/personalEvaluation/personalTemplate.vue"
          ),
      },
    ],
  },
  {
    path: "/groupReport",
    component: Layout,
    children: [
      {
        path: "groupAnalysis",
        name: "团体测评报告",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/groupAnalysis.vue"),
      },
      {
        path: "groupAnalysis2",
        name: "团体测评报告",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/groupAnalysis2.vue"),
      },
      {
        path: "groupAnalysisPdf2",
        name: "团体测评报告导出",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/groupAnalysis2Pdf.vue"),
      },
      {
        path: "groupAnalysisPdf1",
        name: "团体测评报告导出",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/groupAnalysisPdf.vue"),
      },
      {
        path: "enterprise",
        name: "企业团体测评报告",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/enterprise.vue"),
      },
      {
        path: "enterprisePdf",
        name: "企业团体测评报告导出",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/enterprisePdf.vue"),
      },
      {
        path: "enterprisePdf2",
        name: "企业团体测评报告模板导出",
        props: true,
        component: () =>
          import("@/views/archive-manage/groupReport/enterprisePdf2.vue"),
      },
      {
        path: "schoolTemplateSCL",
        props: true,
        name: "学校团体报告模板",
        component: () =>
          import("@/views/archive-manage/groupReport/schoolTemplate.vue"),
      },
      {
        path: "schoolTemplateMHT",
        props: true,
        name: "学校团体报告模板",
        component: () =>
          import("@/views/archive-manage/groupReport/schoolTemplate2.vue"),
      },
    ],
  },
  {
    path: "/test",
    component: Layout,
    redirect: "/test/index",
    children: [
      {
        path: "index",
        name: "心理测评",
        // meta: {
        //   i18n: "量表"
        // },
        props: true,
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/test/index.vue"),
      },
      {
        path: "details",
        name: "心理测评详情",
        // meta: {
        //   i18n: "量表"
        // },
        props: (route) => route.query,
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/test/test-details.vue"
          ),
      },
    ],
  },
  {
    path: "/reportGrid",
    component: Layout,
    children: [
      {
        path: "reportGrid",
        name: "年级详情列表",
        props: true,
        component: () => import("@/views/report/schoolBoard/reportGrid.vue"),
      },
    ],
  },
  {
    path: "/schoolBoardNew",
    component: Layout,
    children: [
      {
        path: "schoolBoardNew",
        name: "学校看板",
        component: () =>
          import("@/views/report/schoolBoardNew/schoolBoardNew.vue"),
      },
    ],
  },
  {
    path: "/noTestGrid",
    component: Layout,
    children: [
      {
        path: "noTestGrid",
        name: "未测人数明细",
        props: true,
        component: () => import("@/views/report/schoolBoard/noTestGrid.vue"),
      },
    ],
  },
  {
    path: "/warningType",
    component: Layout,
    children: [
      {
        path: "reportDetail",
        name: "异常详情",
        props: true,
        component: () => import("@/views/report/schoolBoard/warningType.vue"),
      },
    ],
  },
  {
    path: "/problem",
    component: Layout,
    children: [
      {
        path: "problem",
        name: "问题管理",
        component: () => import("@/views/problem/index.vue"),
      },
    ],
  },
  {
    path: "/order",
    component: Layout,
    children: [
      {
        path: "order",
        name: "订单管理",
        component: () => import("@/views/order/index.vue"),
      },
    ],
  },
  {
    path: "/programme",
    component: Layout,
    children: [
      {
        path: "programme",
        name: "心理室建设",
        component: () => import("@/views/programme/programme.vue"),
      },
    ],
  },
  {
    path: "/reserve",
    component: Layout,
  },
  {
    path: "/consultant",
    component: Layout,
    children: [
      {
        path: "consultant",
        name: "咨询师详情",
        component: () => import("@/views/consultant/index"),
      },
    ],
  },
  {
    path: "/consulting-manage",
    component: Layout,
    children: [
      {
        path: "consulting-manage",
        name: "咨询管理",
        component: () => import("@/views/consulting-manage/consulting.vue"),
      },
      {
        path: "order-manage",
        name: "预约管理",
        component: () => import("@/views/consulting-manage/order.vue"),
      },
      {
        path: "release-manage",
        name: "发布管理",
        component: () => import("@/views/consulting-manage/release.vue"),
      },
      {
        path: "report",
        name: "咨询报告",
        component: () => import("@/views/consulting-manage/report.vue"),
      },
    ],
  },
];
